package com.wanmait.movie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;

/**
* Created by Mybatis Generator 2023/11/30
*/
@Data
@TableName(value = "collection")
@Accessors(chain = true)
public class Collection implements Serializable {
    /**
     * 收藏id
     */
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 收藏人id
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 电影id
     */
    @TableField(value = "movie_id")
    private Integer movieId;

    /**
     * 收藏时间
     */
    @TableField(value = "collection_time")
    private Date collectionTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_USER_ID = "user_id";

    public static final String COL_MOVIE_ID = "movie_id";

    public static final String COL_COLLECTION_TIME = "collection_time";
}